﻿using FaceWebServer.DB.Device;
using FaceWebServer.Interface;
using FaceWebServer.Model.People;
using FaceWebServer.Utility.VerifyAttribute;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FC8280TServer.Controllers.People
{
    /// <summary>
    /// 更新设备的参数
    /// </summary>
    public class PeopleUpdateParameter : PeopleBaseParameter
    {
        /// <susnmmary>
        /// 人员ID
        /// </summary>
        [VerifyNum(iMax: int.MaxValue, iMin: 1, errCode: 100, sErrorDesc: "人员ID不能为空")]
        public int ID { get; set; }

        /// <summary>
        /// 讲参数拷贝到 FaceDevice
        /// </summary>
        /// <param name="target"></param>
        /// <returns></returns>
        public override FacePeople CopyTo(FacePeople target)
        {
            var src = this;
            target.ID = src.ID;
            base.CopyTo(target);
            return target;
        }
    }
}
